package ch03_oothinking.interfacetype;

/**
 * data structure
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class ManyInterface {
    public static void main(String[] args) {
        AA aa = new AA();
        aa.bb();
        aa.b();
    }
}


class AA extends BB implements A, B {
    @Override
    public void b() {
        System.out.println("b");
    }

    @Override
    public void a() {
        System.out.println("a");
    }
}

class BB {
    void bb() {
        System.out.println("bb");
    }

}

interface A extends B {
    void a();
}

interface B {
    void b();
}
